package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author jiyonghui
 * @className ReceiveStatusEnum
 * @description
 * @date 2020/1/10   9:22
 */
@Getter
public enum ReceiveStatusEnum {
    // 出库状态
    UNRECEIVED("1", "enum.receiveStatus.name.unreceived", "unreceived"),
    PARTIAL("2", "enum.receiveStatus.name.partial", "partial"),
    RECEIVED("3", "enum.receiveStatus.name.received", "received"),
    CLOSED("4","enum.receiveStatus.name.closed","closed")
    ;

    private String code;
    private String name;
    private String attr;

    ReceiveStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
